package com.czz.manage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.czz.manage.entity.Category;
import com.czz.manage.vo.CategoryNestedVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName: CategoryMapper
 * @Author Czz
 * @Date 2019/12/29
 * @Time 10:06
 **/
@Repository
public interface CategoryMapper extends BaseMapper<Category> {
    List<CategoryNestedVo> getCategoryNestedList(String parentId);
    List<CategoryNestedVo> getCategoryPageList(Page<CategoryNestedVo> pageParam,@Param("query") Category category);
}
